package com.eedi.org.healthinfo.service;


import com.eedi.framework.common.pojo.PageResult;
import com.eedi.framework.common.validation.AddGroup;
import com.eedi.framework.common.validation.UpdateGroup;
import com.eedi.org.healthinfo.controller.vo.OrgHealthInfoPageReqVO;
import com.eedi.org.healthinfo.controller.vo.OrgHealthInfoSaveReqVO;
import com.eedi.org.healthinfo.controller.vo.OrgHealthInfoUpdateStatusReqVO;
import com.eedi.org.healthinfo.dal.dataobject.OrgHealthInfoDO;
import org.springframework.validation.annotation.Validated;

import java.util.List;


/**
 * 健康资讯 Service 接口
 *
 * @author 芋道源码
 */
public interface OrgHealthInfoService {

    /**
     * 创建健康资讯
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    String createHealthInfo(@Validated({AddGroup.class}) OrgHealthInfoSaveReqVO createReqVO);

    /**
     * 更新健康资讯
     *
     * @param updateReqVO 更新信息
     */
    void updateHealthInfo(@Validated({UpdateGroup.class}) OrgHealthInfoSaveReqVO updateReqVO);

    /**
     * 删除健康资讯
     *
     * @param orgHealthInfoId 编号
     */
    void deleteHealthInfo(String orgHealthInfoId);


    /**
     * 获取健康资讯
     *
     * @param orgHealthInfoId 编号
     */
    OrgHealthInfoDO getHealthInfo(String orgHealthInfoId);

    /**
     * 获得健康资讯分页
     *
     * @param pageReqVO 分页查询
     * @return 健康资讯分页
     */
    PageResult<OrgHealthInfoDO> getHealthInfoPage(OrgHealthInfoPageReqVO pageReqVO);

    /**
     * 更新健康资讯状态
     *
     * @param reqVO 编号
     * @return 广告配置
     */
    void updateHealthInfoStatus(OrgHealthInfoUpdateStatusReqVO reqVO);

    /**
     * 根据分组id获取健康资讯信息
     * @param orgHealthInfoGroupId
     * @return
     */
    List<OrgHealthInfoDO> getHealthInfoByGroupId(String orgHealthInfoGroupId);

}
